<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>event-focusin &lsaquo; KISSY Docs</title>
<link rel="stylesheet" href="../assets/base-min.css" />
<link rel="stylesheet" href="../assets/docs.css" />
</head>
<body class="w866">
<div id="header">
    <a class="logo" href="../index.html"><img src="../assets/logo.png" alt="KISSY" width="138" height="74" /></a>
    <p class="rel-nav">
        <a href="http://github.com/kissyteam/kissy/blob/master/src/event/event-focusin.js"><code>event-focusin.js</code></a>
    </p>
</div>
<div id="content" class="layout grid-s232m0">
    <div class="col-main">
        <div class="main-wrap">

            <div class="section summary">
                <p>让非 IE 浏览器也支持 <code>focusin/focusout</code> 事件，以实现 focus 的事件代理应用。</p>
            </div>

            <div class="section">
                <h3>Examples</h3>
                <p>使用方式很简单，把 <code>focusin/focusout</code> 当成原生支持的事件一样使用就可：</p>
<pre class="example-code"><code>
var S = KISSY, Event = S.Event;

Event.on('#id', 'focusin focusout', function(ev) {
    // do something
});
</code></pre>
            </div>

            <div class="section notes">
                <p>希望 KISSY Event 能帮助你完成大部分事件操作代码。有任何建议，欢迎反馈给我们。</p>
            </div>
        </div>
    </div>
    <div class="col-sub">
        <div class="sub-wrap">
            <div class="loc">
                <a href="../index.html">home</a> &rsaquo;
                <a href="index.html">event</a> &rsaquo;
                event-focusin :
            </div>
            <div class="toc">
                <h3>Examples</h3>
                <ul>
                    <li><a href="http://kissyteam.github.com/kissy/src/event/test.html">test.html</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div id="footer">
    <p class="copyright">&copy; 2009 - 2029 KISSY UI LIBRARY</p>
</div>
</body>
</html>
